package com.tg.dao;


import com.tg.pojo.entity.TgOrderDetail;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author 王兴
 * @Description
 * @Date 2022/3/28
 */

public interface OrderDetailRepository extends JpaRepository<TgOrderDetail,Integer> {

    List<TgOrderDetail> findByOrderId(String orderId);

    List<TgOrderDetail> findDetailByOrderId(String orderId);

    TgOrderDetail findDetailByOrderDetailId(String detailId);
}
